package com.tuanzi.loan.web.bean.wallet;

import javax.annotation.PostConstruct;
import javax.faces.bean.ViewScoped;

import lombok.Data;
import lombok.EqualsAndHashCode;

import org.springframework.stereotype.Component;

import com.tuanzi.loan.core.aspect.Debug;
import com.tuanzi.loan.vo.request.wallet.LoanUserWalletFlowRequest;
import com.tuanzi.loan.vo.response.wallet.LoanUserWalletFlowResponse;
import com.tuanzi.loan.web.configuration.JSFListingBean;
import com.tuanzi.loan.web.lazy.wallet.LoanUserWalletFlowLazyDataModel;

/**
 * 用户钱包流水管理后台Bean
 * @author chenweijun 2018/02/21
 *
 */
@Data
@Debug
@Component
@ViewScoped
@EqualsAndHashCode(callSuper = true)
public class LoanUserWalletFlowBean extends JSFListingBean<LoanUserWalletFlowRequest, LoanUserWalletFlowResponse> {
	
	private static final long serialVersionUID = 6877357877405232129L;
	
	@PostConstruct
	private void init() {
		initLazyDataModel();
	}
	
	private void initLazyDataModel() {
		$ = new LoanUserWalletFlowRequest();
		lazyDataModel = new LoanUserWalletFlowLazyDataModel($);
	}

}
